package com.hzcc.hzccblog.common.enums;

import com.hzcc.hzccblog.common.Result;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author 早睡蛋
 * @Date 2022/7/17 20:30:41
 * @Desc:
 */
@Getter
@AllArgsConstructor
public enum AuthEnums {


    NO_LOGIN(400,"未登录"),
    OK(200,"ok"),

    ;

    AuthEnums(int code, String message) {
        this.result =  Result.defaultResultResponse();
        result.setCode(code);
        result.setMessage(message);
    }

    public int getCode(){
        return result.getCode();
    }

    public String getMessage(){
        return result.getMessage();
    }

    public Result getResult() {
        return result;
    }


    private final Result result;
}
